package com.lazy.book.common.entity;


import com.lazy.book.common.enums.MessageTransferScopeEnum;
import com.lazy.book.common.enums.SocketChannelEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @author lazy
 * @since 2025-09-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SocketMessage {

  @Schema(description = "data")
  protected String data;

  @Schema(description = "通道类型")
  protected SocketChannelEnum channel = SocketChannelEnum.DEFAULTS;

  @Schema(description = "消息通知作用域")
  protected MessageTransferScopeEnum scope = MessageTransferScopeEnum.SOCKET_CLIENT;

}

